import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        int[] array = new int[]{9,1,21,5,7,4,8,6,3,5};
        System.out.println("交换前："+Arrays.toString(array));
        //Sort.selectsort1(array);
        //Sort.selectsort2(array);
        //Sort.insertsort(array);
        //Sort.shellSort(array,5);
        //Sort.creatHeap(array, array.length);
        //Sort.heapSort(array);
        //Sort.bubbleSort(array);
        Sort.QuickSort(array,0,array.length-1);
        System.out.println("交换后："+Arrays.toString(array));
    }
}